home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_02
/
allison
/
widedemo.c
< prev
Wrap
C/C++ Source or Header
|
1994-11-30
|
324b
|
20 lines
LISTING 3 - Illustrates wide character strings
#include <stddef.h>
#include <stdio.h>
main()
{
char str[] = "hello";
wchar_t wcs[] = L"hello";
printf("sizeof str = %d\n",sizeof str);
printf("sizeof wcs = %d\n",sizeof wcs);
return 0;
}
/* Output:
sizeof str = 6
sizeof wcs = 12
*/